<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Administrator Add Application</title>
<link href="../css/common.css" rel="stylesheet" type="text/css" />
<link href="../css/page.css" rel="stylesheet" type="text/css" />
<link href="../css/base.css" rel="stylesheet" type="text/css" />
</head>
<body>
    
	<div class="container">
         <div class="header content">
             <h1 class="lead">Web Project</h1>    
         </div>
		 <div class="main-menu">
			<ul>
				<li><a href="pagetransfer_appAddPage">添加应用</a></li>
				<li><a href="pagetransfer_appsPage">应用列表</a></li>
				<li><a href="pagetransfer_pwdChangePage">修改密码</a></li>
                <li><a href="admin_logout">退出</a></li>
			</ul>
         </div>
		<div class="main-containt">
			<div id="operate-tip">
				<%
					String addStatus = request.getParameter("addStatus");
					if (addStatus != null) {
						if (addStatus.equals("1")) {
							out.print("添加成功");
						} else if (addStatus.equals("0")) {
							out.print("添加失败");
						}
					}
				%>
			</div>
			<form action="appchange_addApplication" method="post">
				<div class="input-row">
					<span class="label">名称：</span><input type="text" name="app.name" /><br />
				</div>
				<div class="input-row">
					<span class="label">简介：</span><input type="text"
						name="app.description" /><br />
				</div>
				<div class="input-row">
					<span class="label">版本：</span><input type="text"
						name="app.version" /><br />
				</div>
				<div class="input-row">
					<input id="input-app" name="app.downloadUrl" value=""
						style="display: none" />
					<div class="upload">
						<div class="item">应用:</div>
						<div class="item" id="show-app"></div>
						<div class="item">
							<iframe id="upload-app" src="pagetransfer_appUploadPage"></iframe>
						</div>
					</div>
					<div style="clear: both;"></div>
				</div>
				<div class="input-row">
					<input id="input-icon" name="app.icon" value=""
						style="display: none" />
					<div class="upload">
						<div class="item">图标:</div>
						<div class="item" id="show-icon"></div>
						<div class="item">
							<iframe id="upload-icon" src="pagetransfer_iconUploadPage"></iframe>
						</div>
					</div>
					<div style="clear: both;"></div>
				</div>
				<div class="input-row">
					<input id="input-twodimentcode" name="app.twoDimentCode" value=""
						style="display: none" />
					<div class="upload">
						<div class="item">二维码:</div>
						<div class="item" id="show-twodimentcode"></div>
						<div class="item">
							<iframe id="upload-twodimentcode"
								src="pagetransfer_twodimentcodeUploadPage"></iframe>
						</div>
					</div>
					<div style="clear: both;"></div>
				</div>
				<div class="input-row">
					<input id="input-screenshots" name="app.screenShot" value=""
						style="display: none" />
					<div class="upload">
						<div class="item">截图:</div>
						<div class="item" style="height: auto">
							<div id="show-scrennshots"></div>
						</div>
					</div>
					<div style="clear: both;"></div>
					<div style="height: 50px;">
						<iframe src="pagetransfer_screenshotsUploadPage"></iframe>
					</div>
				</div>
				<div style="text-align: center;margin-top:50px;">
					<input type="submit" value="提交"  class="button login_btn"/>
				</div>
			</form>
		</div><div class="bottom_container content">
              Copyright@2012-2013<br>
        </div>
	</div>
	
 </div>

	<script type="text/javascript" src="../js/jquery.min.js"></script>
	<script type="text/javascript" src="../js/appatachment.js"></script>
</body>
</html>